<template>
	<responsivePopup @closePopup="closePopup">
		<view class="header">
			<waves class="progress">
				<uni-icons custom-prefix="iconfont" type="icon-tuichudenglu" color="#ffffff" size="20"></uni-icons>
				<text class="titleText"> {{$t('Page.component.logout')}} </text>
			</waves>
			<waves class="close" @onTap="closePopup"> X </waves>
		</view>
		<view class="modal__component">
			<view>{{$t('Page.component.lkqbwl')}}</view>
			<waves class="logoutBtn" @onTap="clickLogout"> <text style="padding: 4px 16px;" >{{$t('Page.component.logout')}}</text> </waves>
		</view>
	</responsivePopup>
</template>

<script>
	import { mapActions } from 'vuex'
	export default {
		data() {
			return {
				tabCurrent: 0,
				tabList: [{
					name: 'Progress'
				}, {
					name: 'My Benifit'
				}, {
					name: 'More Vip Benefits'
				}]

			}
		},
		methods: {
			...mapActions('app', ['userLogout']),
			onTapTabCurrent(item, index) {
				this.tabCurrent = index
			},
			closePopup() {
				this.$emit('closePopup', false)
			},
			clickLogout(){
				this.userLogout()
			}
		}
	}
</script>

<style lang="less" scoped>
	.header {
		border-radius: inherit;
		padding: 8px 8px;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.progress {
			border-radius: 28px;
			background: #1e232a;
			padding: 4px 16px;
			min-height: 2.572em;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;

			.titleText {
				margin-left: 10px;
			}
		}

		.close {
			border-radius: 50%;
			font-size: 12px;
			min-width: 3em;
			min-height: 3em;
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}

	.modal__component {
		width: 500px;
		padding: 24px;
		color: #adadc2;
		line-height: 1.5;

		.logoutBtn {
			font-weight: 500;
			padding: 8px;
			min-height: 2.572em;
			margin-top: 16px;
			border-radius: 3px;
			color: #fff;
			background: #fe2247;
			display: flex;
			justify-content: center;
			align-items: center;
			box-shadow: 0 1px 5px rgba(0, 0, 0, .2), 0 2px 2px rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12);
		}
	}


	@media screen and (max-width: 768px) {
		.modal__component {
			width: 100% !important;
		}
	}
</style>